<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="/template.xhtml">
        <ui:define name="content">
            <h:form id="formFeedback" prependId="false">
                <p:growl id="msgs"/>
                <body>
                    <p:panel header="Answer of Feedback" style="text-align: center">

                        <h:form id="form">
                            <center>
                                <h:inputHidden value="#{feedbackController.current.feedbackID}" />
                                <p:panelGrid columns="2" >
                                    <h:outputText value="User name: " />
                                    <h:outputText value="#{feedbackController.current.userInfo.userName}"/>
                                    <h:outputText value="Question: " />
                                    <h:outputText value="#{feedbackController.current.content}" style="word-break:break-all;"/>
                                    <h:outputText value="Comment Answer: " />
                                    <p:inputTextarea value="#{feedbackController.current.answer}" rows="5" cols="30" required="true" requiredMessage="Comment Answer is required" />


                                </p:panelGrid>


                                <h:panelGrid columns="2" style="margin-top:10px">
                                    <p:commandButton  value="Send" icon="ui-icon-disk" action="#{feedbackController.update}" ajax="false"/>
                                    <p:commandButton value="Cancel" action="#{feedbackController.prepareList}" icon="ui-icon-close" ajax="false" immediate="true" />
                                </h:panelGrid>
                            </center>

                        </h:form>

                    </p:panel>
                </body>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
